package com.newdriver.edu.inf.manager.entry;

import com.newdriver.edu.inf.manager.controller.StudentController;
import com.newdriver.edu.inf.manager.controller.TeacherController;

import java.util.Scanner;

//程序入口 显示主菜单
public class SystemEntry {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        while (true) {
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            String choise = sc.next();

            switch (choise){
                case "1":
                    //System.out.println("学生管理");
                    StudentController studentcontroller = new StudentController();
                    studentcontroller.start();
                    break;
                case "2":
                    //System.out.println("老师管理");
                    TeacherController teacherController = new TeacherController();
                    teacherController.start();
                    break;
                case "3":
                    System.out.println("感谢使用");
                    break;
                default:
                    System.out.println("输入有误");
                    System.exit(0);
                    break;
            }
        }
    }
}
